package com.nsoft.server.register.beans;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class BillingDetailPK implements Serializable {
	@Column(name="bid_num_id")
	private int bidNumId;

	@Column(name="bid_num_billId")
	private int bidNumBillid;

	@Column(name="bid_num_gcno")
	private int bidNumGcno;

	private static final long serialVersionUID = 1L;

	public BillingDetailPK() {
		super();
	}

	public int getBidNumId() {
		return this.bidNumId;
	}

	public void setBidNumId(int bidNumId) {
		this.bidNumId = bidNumId;
	}

	public int getBidNumBillid() {
		return this.bidNumBillid;
	}

	public void setBidNumBillid(int bidNumBillid) {
		this.bidNumBillid = bidNumBillid;
	}

	public int getBidNumGcno() {
		return this.bidNumGcno;
	}

	public void setBidNumGcno(int bidNumGcno) {
		this.bidNumGcno = bidNumGcno;
	}

	@Override
	public boolean equals(Object o) {
		if (o == this) {
			return true;
		}
		if ( ! (o instanceof BillingDetailPK)) {
			return false;
		}
		BillingDetailPK other = (BillingDetailPK) o;
		return (this.bidNumId == other.bidNumId)
			&& (this.bidNumBillid == other.bidNumBillid)
			&& (this.bidNumGcno == other.bidNumGcno);
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.bidNumId;
		hash = hash * prime + this.bidNumBillid;
		hash = hash * prime + this.bidNumGcno;
		return hash;
	}

}
